/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 * @flow
 */

import React, { Component } from 'react';
import {
  StyleSheet,
  Text,
  View,
  YellowBox
} from 'react-native';
import { createStackNavigator } from 'react-navigation';

import Home from './Home'
import Camera from './Camera'

const MyApp = createStackNavigator({
  Home: {
    screen: Home,
  },
  Camera: {
    screen: Camera,
  },
});

//屏蔽对应的警告
YellowBox.ignoreWarnings(['Warning: isMounted(...) is deprecated in plain JavaScript React classes.',  
'Module RCTImageLoader requires main queue setup since it overrides `init` ']);

type Props = {};
export default class App extends Component<Props> {
  render() {
    return <MyApp />;
  }
}
